<?php echo $html->css("screen/users.css");?>
<script>	  
	$(document).ready(function(){		
		$("#UserResetPasswordForm").validate({
			rules: {
				'data[User][password]': {
					required: true,
					minlength: 3
				},
				'data[User][confirm_password]': {
					required: true,
					minlength: 3,
					equalTo:'#UserPassword'
				}
			},
			messages: {
				'data[User][password]': {
					required: "Please enter password",
					minlength: "This password must consist of at least 3 characters",					
				},			
				'data[User][confirm_password]': {
					required: "Please enter password",
					minlength: "This password must consist of at least 3 characters",
					equalTo: "Please enter the same password as above"
				}
			}
		});		
	});	
</script>	
<div id="content" class="users form">
<?php echo $form->create('User', array('action' => 'reset_password/'.$rid."/".$rcode));?>	
	<?php echo $session->flash();?>
	<?php echo $session->flash('auth');?>
	<?php		
		echo $form->input('password');		
		echo $form->input('confirm_password',array('type'=>'password'));		
	?>	
	<div class="clear">
		<label>&nbsp;</label>
		<?php echo $form->submit(__('Reset password', true),array('class'=>'bt bt_save','div'=>false));?>
	</div>	
	 <?php echo $this->Form->end();?>
</div>
